package github.ziwukun.jsonql.orm;

import java.util.List;

class FmContainerImpl implements FmContainer{
	ContainerImpl ctn;
	CtnFieldImpl fmField;
	ContainerImpl mappedBy;
	
	FmContainerImpl(ContainerImpl ctn,CtnFieldImpl fmField,
		ContainerImpl mappedBy){
		this.ctn = ctn;
		this.fmField = fmField;
		this.mappedBy = mappedBy;
	}
	
	@Override
	public String ctnName() {
		return ctn.ctnName;
	}

	@Override
	public ContainerType ctnType() {
		return ctn.ctnType;
	}

	@Override
	public IdField id() {
		return ctn.id;
	}

	@Override
	public List<CtnField> fields() {
		return ctn.fields();
	}

	@Override
	public boolean isFieldEmpty() {
		return ctn.isFieldEmpty();
	}

	@Override
	public CtnField getFieldByName(String fieldName) {
		return ctn.getFieldByName(fieldName);
	}

	@Override
	public CtnField fmField() {
		return fmField;
	}

	@Override
	public Container mappedBy() {
		return mappedBy;
	}

}
